import os
import unittest
from cases.Base_Case import BASECASE
from config.config import DATA_PATH
from page.index import IndexPage
from page.收费管理.发票号设置.fapiaohaoshezhi__page import fapiaohaoshezhi
from tools.sjqd_way import read_data_from_excel
class TestChushihua(BASECASE):
    @classmethod
    def tearDownClass(cls):
        ap = IndexPage()
        ap.close_all_xxk()
        print("{}执行完毕-------------------------------------------------".format(cls))
    def test_chushihua(self):
        self.data = read_data_from_excel(os.path.join(DATA_PATH, "datas.xls"), "初始化")
        sss,yf,clf,gg = self.data[0]
        a,b,c,d = self.data[1]
        A,B,C,D = self.data[2]
        ap = IndexPage()
        bp = fapiaohaoshezhi()
        ap.yfsz('药房','药房')#药房设置
        ap.gzbqsz()#工作病区设置
        ap.gzkssz()#工作科室设置
        ap.dyjsz()#打印机设置
        ap.ssglcssz(sss,yf,clf)#手术管理参数设置
        ap.fwdjsz(a,b,c,d,A,B,C,D)#服务登记设置
        bp.fphsz('药房','材料房')#发票号设置
if __name__ == '__main__':
    unittest.main()


